package com.kobe.demo.controller;

import com.kobe.demo.entity.RoleEntity;
import com.kobe.demo.repository.RoleInfoRepository;
import com.kobe.demo.repository.temp.RoleEx;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 创建 JYQ  on  2018/10/31,17:47
 */
@RestController
public class RoleInfoController {
    @Resource
    private RoleInfoRepository repository;
    @RequestMapping("/list")
    public List<RoleEntity> list(){
       return this.repository.findAll();

    }
    @RequestMapping("/listGroup")
    public  List<RoleEx>  listGroup(){
        return  this.repository.roleGroup();
    }
    @RequestMapping("/autoList")
    public  List<?>  autoList(){
        return  this.repository.queryList();
    }

}
